#define  _CRT_SECURE_NO_WARNINGS
#include "List.h"

void ListTest()
{
	LT* s = ListInit();
	//ListPushBack(s, 1);
	//ListPushBack(s, 2);
	//ListPushBack(s, 3);
	//ListPushBack(s, 4);

	ListPushFront(s, 1);
	ListPushFront(s, 2);
	ListPushFront(s, 3);
	ListPushFront(s, 4);
	print(s);

	//ListPopBack(s);
	//ListPopBack(s);
	//ListPopBack(s);
	//ListPopBack(s);
	////ListPopBack(s);
	//ListPopFront(s);
	//ListPopFront(s);
	//ListPopFront(s);
	//ListPopFront(s);
	////ListPopFront(s);
	//LT* ret = ListFind(s, 2);
	////if (ret != NULL)
	//{
	//	printf("1\n");
	//}
	//else
	//{
	//	printf("0\n");
	//}
	//
	//ListInvertFront(ret, 8);
	//print(s);
	//
	//ListErase(ret);
	//print(s);

	ListDestroy(s);
	s = NULL;
}

int main()
{
	ListTest();
	return 0;
}